package com.pruebas.entity;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;
import org.springframework.security.core.GrantedAuthority;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
public class Authority implements GrantedAuthority{

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@NotNull
    @Size(max = 30)
    private String roleName;

	@Override
	public String getAuthority() {
		return roleName;
	}
}
